package org.zhq.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.zhq.pojo.Items;
import org.zhq.pojo.vo.SearchItemsVO;

import java.util.Map;
@Repository
public interface ItemsMapper extends BaseMapper<Items> {
    IPage<SearchItemsVO> searchItems(Page page, @Param("paramMap") Map<String,Object> paramMap);

    IPage<SearchItemsVO> searchItemsByThirdCat(Page page, @Param("paramMap") Map<String,Object> paramMap);

    boolean decreaseItemSpecStock(@Param("specId") String specId, @Param("pendingCounts")Integer pendingCounts);
}
